#include "seqlist.h"

int main(int argc, char const *argv[])
{
   seqlist *l = create_empty_seqlist();
    int data = 0;
    printf("please input %d number :", MAX);
    while(!is_full_seqlist(l)) {
        scanf("%d", &data);
        insert_data_seqlist(l, data);
    }
    print_data_seqlist(l);


    printf("please input you want to delete data: ");
    scanf("%d", &data);
    int ret = delete_data(l, data);
    if (ret < 0) {
        printf("seqlist is empty or data not found!");
    }
    print_data_seqlist(l);
    free(l);
    l = NULL;

    return 0;
}
